package com.lcfc.attend.controller;


import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.lcfc.attend.entity.DailyAttendance;
import com.lcfc.attend.service.DailyAttendanceService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@RestController
@RequestMapping("/accessDept")
public class DailyAttendanceController {
	
	@Autowired
	private DailyAttendanceService dictService;
	/**
	 * 获取考勤详情
	 * @param id
	 * @return
	 */
	@ApiOperation(value = "获取考勤", notes = "获取考勤")
    @PostMapping("/queryAttendById")
    public DailyAttendance queryAttendById(@ApiParam(value = "系统id") @RequestParam(required = false) String id,
    		HttpServletRequest request) {
		DailyAttendance info = dictService.queryAttendById(id);
		return info;
	}
}
